home *** CD-ROM | disk | FTP | other *** search
- IBCHNG(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- IIBBCCHHNNGG, IIIIBBCCHHNNGG, JJIIBBCCHHNNGG, KKIIBBCCHHNNGG - Reverses the value of a specified
- bit in an integer
-
- SSYYNNOOPPSSIISS
- IIBBCCHHNNGG (([II==]_i,, [PPOOSS==]_p_o_s))
- IIIIBBCCHHNNGG (([II==]_i,, [PPOOSS==]_p_o_s))
- JJIIBBCCHHNNGG (([II==]_i,, [PPOOSS==]_p_o_s))
- KKIIBBCCHHNNGG (([II==]_i,, [PPOOSS==]_p_o_s))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
-
- SSTTAANNDDAARRDDSS
- Fortran extensions
-
- DDEESSCCRRIIPPTTIIOONN
- The IIBBCCHHNNGG, IIIIBBCCHHNNGG, JJIIBBCCHHNNGG, and KKIIBBCCHHNNGG intrinsic functions reverse
- the value of a specified bit in an integer. They accept the following
- arguments:
-
- _i Must of of type integer. Contains the bit to be reversed.
- For IIIIBBCCHHNNGG, must be of type integer (KIND=2). For JJIIBBCCHHNNGG,
- must be of type integer (KIND=4). For KKIIBBCCHHNNGG, must be of
- type integer (KIND=8).
-
- _p_o_s Must be of type integer. Specifies the position of the bit
- to be reversed. The rightmost (least significant) bit of _i
- is in position 0.
-
- These are elemental intrinsic functions. The names of these
- intrinsics cannot be passed as arguments.
-
- RREETTUURRNN VVAALLUUEESS
- The result type and type parameter are the same as _i. The result is
- equal to _i, with the bit in position _p_o_s reversed.
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-